import 'package:bilibili/http/request/favorite_request.dart';
import 'package:hi_net/hi_net.dart';

import '../request/cancel_favorite_request.dart';

class FavoriteDao {
  static favorite(String vid, bool like) async {
    FavoriteRequest request = like ? FavoriteRequest() : CancelFavoriteRequest();
    request.pathParams = vid;
    var response = await HiNet.getInstance().fire(request);
    return response;
  }
}
